setex

Set key to hold the string value and set key to timeout after a given number of seconds

void
setex
(
T
)
(
Redis redis
,
string key
,,)

Parameters

redis Redis

Database

key string

Variable name

seconds int

Expire time

value T

Variable value

Meta